package cn.zhiran.org.domain;

import cn.zhiran.basic.domain.BaseDomain;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;
@Data
public class Department extends BaseDomain{

    private String sn;  //部门编号
    private String name;  //部门名称
    private String dirPath;//上级部门路径
    private Integer state;//状态
    private Long manager_id;//部门管理者id
    private Employee manager;//部门管理者对象
    private Long parent_id; //上级部门id
    private Department parent;//上级部门对象
    //下级部门对象
    private List<Department> children = new ArrayList<>();

}
